package com.yunlankeji.stemcells.activity.mine;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.yunlankeji.ganxibaozhijia.R;
import com.yunlankeji.stemcells.model.request.Address;

public class Address_editActivity extends AppCompatActivity {
    int flag=0;
    EditText tv_address_edit_name,tv_address_edit_phone,tv_address_edit_location,tv_address_edit_location_detail;
    ImageView iv_change;
    LinearLayout lt_return;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_address_edit);
        tv_address_edit_name = findViewById(R.id.et_address_edit_name);
        tv_address_edit_phone = findViewById(R.id.et_address_edit_phone);
        tv_address_edit_location = findViewById(R.id.et_address_edit_location);
        tv_address_edit_location_detail = findViewById(R.id.et_address_edit_location_detail);
        iv_change=findViewById(R.id.iv_address_type);
        lt_return = findViewById(R.id.lt_address_edit_return);

        String name = getIntent().getStringExtra("name");

        tv_address_edit_name.setText(name);

        String phone = getIntent().getStringExtra("phone");

        tv_address_edit_phone.setText(phone);

        String location_detail = getIntent().getStringExtra("location_detail");

        tv_address_edit_location_detail.setText(location_detail);

        lt_return.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });


    }

}